package cn.ilovese.collect.datamapper.user;

import cn.ilovese.collect.po.user.Activity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ActivityMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Activity record);

    int insertSelective(Activity record);

    Activity selectByPrimaryKey(Integer id);

    List<Activity> selectByUserId(Integer userid);

    Activity selectByUserIdAndLoginDate(@Param("userid") Integer userid,@Param("logindate") String logindate);

    int increaseActivityByUserid(@Param("userid") Integer userid,@Param("addnum") Integer addnum,@Param("logindate") String logindate);

    int updateByPrimaryKeySelective(Activity record);

    int updateByPrimaryKey(Activity record);
}